package com.jstnvr.smartcampus.service.impl;

import com.jstnvr.smartcampus.entity.FaceImg;
import com.jstnvr.smartcampus.mapper.FaceImgMapper;
import com.jstnvr.smartcampus.service.FaceImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FaceImgServiceImpl implements FaceImgService {

    @Autowired
    private FaceImgMapper faceImgMapper;


    @Override
    public int deleteByPrimaryKey(Integer imgid) {
        return faceImgMapper.deleteByPrimaryKey(imgid);
    }

    @Override
    public int insert(FaceImg record) {
        return faceImgMapper.insert(record);
    }

    @Override
    public int insertSelective(FaceImg record) {
        return faceImgMapper.insertSelective(record);
    }

    @Override
    public FaceImg  selectByPrimaryKey(Integer imgid){


    System.out.println("imgid");

    return faceImgMapper.selectByPrimaryKey(imgid);

    }

    @Override
    public int updateByPrimaryKeySelective(FaceImg record) {
        return faceImgMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FaceImg record) {
        return faceImgMapper.updateByPrimaryKey(record);
    }


}
